package com.shujia.udf;

import com.jcraft.jsch.jce.ARCFOUR;
import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
import org.apache.hadoop.hive.ql.metadata.HiveException;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDTF;
import org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector;

import java.util.Arrays;

public class UdtfDemo3 extends GenericUDTF{

    @Override
    public StructObjectInspector initialize(StructObjectInspector argOIs) throws UDFArgumentException {
       byte[] bytes= new byte[]{115, 116, 117, 49};
        String string = Arrays.toString(bytes);
        System.out.println(string);
        return null;
    }

    @Override
    public void process(Object[] objects) throws HiveException {

    }

    @Override
    public void close() throws HiveException {

    }
}
